| Honch's Common Events
| Version 0.3a
|
|------------------------------------------------------------|
#event make_lesson "#1# tells Honchb0ts:1, 'make lesson'"
#event make_lesson "#1# tells you, 'make lesson'"
#event make_lesson "#1# tells the group, 'make lesson'"
#event make_lesson "#1# tells the guild, 'make lesson'"
|------------------------------------------------------------|
#event make_infusion "#1# tells Honchb0ts:1, 'make infusion'"
#event make_infusion "#1# tells you, 'make infusion'"
#event make_infusion "#1# tells the group, 'make infusion'"
#event make_infusion "#1# tells the guild, 'make infusion'"
|------------------------------------------------------------|
#event make_intensity "#1# tells Honchb0ts:1, 'make intensity'"
#event make_intensity "#1# tells you, 'make intensity'"
#event make_intensity "#1# tells the group, 'make intensity'"
#event make_intensity "#1# tells the guild, 'make intensity'"
|------------------------------------------------------------|
#event consent "#1# tells Honchb0ts:1, 'consent'"
#event consent "#1# tells you, 'consent'"
#event consent "#1# tells the group, 'consent'"
#event consent "#1# tells the guild, 'consent'"
|------------------------------------------------------------|
#event makecopy "#1# tells Honchb0ts:1, 'makecopy #2#'"
#event makecopy "#1# tells you, 'makecopy #2#'"
#event makecopy "#1# tells the group, 'makecopy #2#'"
#event makecopy "#1# tells the guild, 'makecopy #2#'"
|------------------------------------------------------------|
#Event Camping   "It will take you about 30 seconds to prepare your camp."
|------------------------------------------------------------|
#event make_hail "#1# tells Honchb0ts:1, 'make hail'"
#event make_hail "#1# tells you, 'make hail'"
#event make_hail "#1# tells the group, 'make hail'"
#event make_hail "#1# tells the guild, 'make hail'"
|------------------------------------------------------------|
#event AcceptTL "#1# tells Honchb0ts:1, 'make accepttl'"
#event AcceptTL "#1# tells you, 'make accepttl'"
#event AcceptTL "#1# tells the group, 'make accepttl'"
#event AcceptTL "#1# tells the guild, 'make accepttl'"
|------------------------------------------------------------|
#event ClickVirtue "#1# tells Honchb0ts:1, 'click virtue'"
#event ClickVirtue "#1# tells you, 'click virtue'"
#event ClickVirtue "#1# tells the group, 'click virtue'"
#event ClickVirtue "#1# tells the guild, 'click virtue'"
|------------------------------------------------------------|
#event make_invis "#1# tells Honchb0ts:1, 'make invis'"
#event make_invis "#1# tells you, 'make invis'"
#event make_invis "#1# tells the group, 'make invis'"
#event make_invis "#1# tells the guild, 'make invis'"
|------------------------------------------------------------|
#event make_search "#1# tells Honchb0ts:1, 'make search #2#'"
#event make_search "#1# tells you, 'make search #2#'"
#event make_search "#1# tells the group, 'make search #2#'"
#event make_search "#1# tells the guild, 'make search #2#'"
|------------------------------------------------------------|
#event invis_fade "You feel yourself starting to appear."
|------------------------------------------------------------|
#event sneak_fail "You are as quiet as a herd of running elephants."
|------------------------------------------------------------|
#event make_swarm "#1# tells Honchb0ts:1 'make swarm'"
#event make_swarm "#1# tells you, 'make swarm'"
#event make_swarm "#1# tells the group, 'make swarm'"
#event make_swarm "#1# tells the guild, 'make swarm'"
|------------------------------------------------------------|
#event make_rez "#1# tells Honchb0ts:1, 'make rez'"
#event make_rez "#1# tells you, 'make rez'"
#event make_rez "#1# tells the group, 'make rez'"
#event make_rez "#1# tells the guild, 'make rez'"
|------------------------------------------------------------|
#event make_zone "#1# tells Honchb0ts:1, 'make zone'"
#event make_zone "#1# tells you, 'make zone'"
#event make_zone "#1# tells the group, 'make zone'"
#event make_zone "#1# tells the guild, 'make zone'"
|------------------------------------------------------------|
#event make_follow "#1# tells Honchb0ts:1, 'make follow'"
#event make_follow "#1# tells you, 'make follow'"
#event make_follow "#1# tells the group, 'make follow'"
#event make_follow "#1# tells the guild, 'make follow'"
|------------------------------------------------------------|
#event make_camp "#1# tells Honchb0ts:1, 'make camp'"
#event make_camp "#1# tells you, 'make camp'"
#event make_camp "#1# tells the group, 'make camp'"
#event make_camp "#1# tells the guild, 'make camp'"
|------------------------------------------------------------|
#event make_loot "#1# tells Honchb0ts:1, 'make loot'"
#event make_loot "#1# tells you, 'make loot'"
#event make_loot "#1# tells the group, 'make loot'"
#event make_loot "#1# tells the guild, 'make loot'"
|------------------------------------------------------------|
#event make_raid "#1# tells Honchb0ts:1, 'make raid'"
#event make_raid "#1# tells you, 'make raid'"
#event make_raid "#1# tells the group, 'make raid'"
#event make_raid "#1# tells the guild, 'make raid'"
|------------------------------------------------------------|
#event make_raid_buff "#1# tells Honchb0ts:1, 'make raid buff'"
#event make_raid_buff "#1# tells you, 'make raid buff'"
#event make_raid_buff "#1# tells the group, 'make raid buff'"
#event make_raid_buff "#1# tells the guild, 'make raid buff'"
|------------------------------------------------------------|
#event break_invis "#1# tells the guild, 'ATTACK THIS NAGGA#*#'"
|------------------------------------------------------------|
#event joinchan "[MQ2] JOIN HONCH CHANNEL"
|------------------------------------------------------------|
#event rezcheck "#1# tells Honchb0ts:1, 'make rezcheck'"
#event rezcheck "#1# tells you, 'make rezcheck'"
#event rezcheck "#1# tells the group, 'make rezcheck'"
#event rezcheck "#1# tells the guild, 'make rezcheck'"
|------------------------------------------------------------|
#event ebcheck "#1# tells Honchb0ts:1, 'make ebcheck'"
#event ebcheck "#1# tells you, 'make ebcheck'"
#event ebcheck "#1# tells the group, 'make ebcheck'"
#event ebcheck "#1# tells the guild, 'make ebcheck'"
|------------------------------------------------------------|
#event make_mount "#1# tells Honchb0ts:1, 'make mount'"
#event make_mount "#1# tells you, 'make mount'"
#event make_mount "#1# tells the group, 'make mount'"
#event make_mount "#1# tells the guild, 'make mount'"
|------------------------------------------------------------|
#event make_refresh # tells Honchb0ts:1, 'make refresh'"
#event make_refresh "#1# tells you, 'make  refresh'"
#event make_refresh "#1# tells the group, 'make refresh'"
#event make_refresh "#1# tells the guild, 'make refresh'"
|------------------------------------------------------------|

Sub Event_Chat(ChatType,Sender,ChatText)
/if (${ChatType.Equal[tell]} && ${RelayTells} && (${Spawn[${Sender}].Type.Equal[PC]} || !${Spawn[${Sender}].ID})) /1 ${Sender} told me ${ChatText}
/if (${DoBuffTotal} && ${DoBuffs} && ${Sender.NotEqual[${Me.CleanName}]} && ${Spawn[pc ${Sender}].ID}) /call CheckDoBuffs "${Sender}" "${ChatText}"
/if (${ChatText.Find[pet toys]} && ${PetItemTotal} && ${Me.Class.ShortName.Equal[MAG]} && ${Spawn[pc ${Sender}].Pet.ID} && ${Spawn[${Spawn[pc ${Sender}].Pet.ID}].Distance3D}<250 && ${Spawn[${Spawn[pc ${Sender}].Pet.ID}].LineOfSight}) /call PetToys ${Spawn[pc ${Sender}].Pet.ID}
/if (${MasterList.Find[${Sender}]}) {
	/if (${ChatText.Left[1].Equal[/]}) /docommand ${ChatText}
	/if ((${ChatText.Find[move up]} || ${ChatText.Find[follow]}) && !${Me.Standing} && ${MasterList.Find[${Sender}]}) /stand
	/if (${ChatText.Find[move up]} && ${Sender.NotEqual[${Me.CleanName}]}) {
		/if (${MakeCamp.Status.Equal[ON]}) /makecamp ${Spawn[pc ${Sender}].Y} ${Spawn[pc ${Sender}].X}
		/moveto ID
	}
	/if (${ChatText.Find[follow]} && ${MasterList.Find[${Sender}]} && ${Sender.NotEqual[${Me.CleanName}]}) {
		/if (${ChatText.Arg[2].Length} && ${Spawn[pc ${ChatText.Arg[2]}].ID}) /varset FollowGuy ${Spawn[pc ${ChatText.Arg[2]}].ID}
		/if ((!${ChatText.Arg[2].Length} || !${Spawn[pc ${ChatText.Arg[2]}].ID}) && ${Spawn[pc ${Sender}].ID}) /varset FollowGuy ${Spawn[pc ${Sender}].ID}
		/target id ${FollowGuy}
		/stick off
		/delay 1s ${Target.ID}==${FollowGuy}
      	/squelch /stick hold uw
|		/squelch /netfollow on
		/varset FollowOn TRUE
		/if (${MakeCamp.Status.Equal[ON]}) /makecamp off
	}
	/if (${ChatText.Find[stop]} && ${MasterList.Find[${Sender}]}) {
		/squelch /stick off
		/squelch /netfollow off
		/varset FollowOn FALSE
		/varset FollowGuy 0
		/if (${Melee.Combat}) {
			/timed 5 /attack off
			/varset MATarget 999999
		}
	}
}
/return

Sub event_make_refresh(Line,Sender)
/if (${Me.Name.Equal[Starix]} || ${Me.Name.Equal[Fisker]}) { 
/exchange "Amulet of Necropotence" pack8
/delay 10
/itemnotify pack8 rightmouseup
/delay 1s
/itemnotify pack8 leftmouseup
/delay 1s
/autoinv
}
/if (${Select[${Me.Class.ShortName},CLR,DRU,SHM,WIZ,ENC,NEC,MAG]}) {
/itemnotify ammo rightmouseup
/delay 4s
}
/return

Sub event_make_mount(Line,Sender)
/if (${Me.Name.Equal[Starix]} || ${Me.Name.Equal[Fisker]}) { 
/exchange "Amulet of Necropotence" pack8
/delay 10
/itemnotify pack8 rightmouseup
/delay 1s
/itemnotify pack8 leftmouseup
/delay 1s
/autoinv
}
/if (${Select[${Me.Class.ShortName},CLR,DRU,SHM,WIZ,ENC,NEC,MAG]}) {
/itemnotify ammo rightmouseup
/delay 4s
}
/return

Sub event_ebcheck(Line,Sender)
| List of all the Faerune chars
/if (${Me.Name.Equal[Corlo]}) /return
/if (${Me.Name.Equal[Forestwow]}) /return
/if (${Me.Name.Equal[Getrightwow]}) /return
/if (${Me.Name.Equal[Eraken]}) /return
/echo oh lol
/varset ebchecktimer 1000
/if (${Me.FeetWet} && !${Me.Buff[Leviathan Eyes].ID}) {
/gu corloeb
}
/if (${Me.FeetWet} && ${Me.Buff[Leviathan Eyes].ID} && ${Me.Buff[Leviathan Eyes].Duration}<100) {
/gu corloeb
}
/return

Sub event_rezcheck(Line,Sender)
/if ((!${InvSlot[chest].Item.ID} && !${InvSlot[mainhand].Item.ID} && !${Me.Platinum}) || ${Me.State.Equal[HOVER]}) /gu need rez
/return

Sub event_joinchan(Line,Sender)
| This happens on start of every Honch macro, so some declares here as well..
/join Honchb0ts
/autojoin Honchb0ts
/declare NameText string outer
/declare ebchecktimer				timer	outer
/delay 2s
/return

Sub event_make_follow(Line,Sender)
/target ${Sender}
/delay 10
/stick hold
/return

Sub event_make_raid(Line,Sender)
/disband
/disband
/raiddisband
/delay 2s
/if (${Me.Name.Equal[Fisker]}) {
/invite Erac
/delay 5
/invite Ksharp
/delay 5
/invite Zetro
/delay 5
/invite Eisenhorn
/delay 5
/invite Cherubael
/delay 5
}
/if (${Me.Name.Equal[Varco]}) {
/invite Amberley
/delay 5
/invite Tadsley
/delay 5
/invite Sarpadon
/delay 5
/invite Ciaphas
/delay 5
/invite Konrados
/delay 5
}
/if (${Me.Name.Equal[Getrightwow]}) {
/invite Nothingwow
/delay 5
/invite Archiwow
/delay 5
/invite Neowow
/delay 5
/invite Coguwow
/delay 5
/invite Maurier
/delay 5
}
/if (${Me.Name.Equal[Element]}) {
/invite Aemos
/delay 5
/invite Corlo
/delay 5
/invite Nessa
/delay 5
/invite Alpharius
/delay 5
/invite Droska
/delay 5
}
/if (${Me.Name.Equal[Honch]}) {
/invite Albrecht
/delay 5
/invite Eraken
/delay 5
/invite Forestwow
/delay 5
/invite Starix
/delay 5
/invite Myrmidon
}
/return

Sub Event_make_hail(Line,Sender)
/target clear
/target ${Sender}
/delay 30
/if (${Target.Distance}>500) /return
/varset HailMob ${Me.TargetOfTarget.ID}
/target id ${Me.TargetOfTarget.ID}
/delay 20
/if (${Stick.Status.Equal[ON]}) /stick off
/if (${Me.Class.Name.Equal[Ranger]}) /varset Follow 0
/if (${Me.Class.Name.Equal[Rogue]} || ${Me.Class.Name.Equal[Wizard]}) /varset Follow FALSE
/if (${Me.Class.Name.Equal[Cleric]} || ${Me.Class.Name.Equal[Shaman]} || ${Me.Class.Name.Equal[Enchanter]}) { 
/varset FollowOn FALSE
/varset FollowGuy 0
}
:MoveLoop
/target id ${HailMob}
/stick 12
	  /if (${Target.Distance}>12) /stick 12
      /if (${Target.Distance}<11)  {
/stick off
			   /hail
			   /delay 1s
/if (${Me.Class.Name.Equal[Ranger]}) /varset Follow 1
/if (${Me.Class.Name.Equal[Rogue]} || ${Me.Class.Name.Equal[Wizard]}) /varset Follow TRUE
			   /return
      }
	  /goto :MoveLoop

Sub Event_makecopy(Line,Sender,ChatText)
/target clear
/target ${Sender}
/delay 30
/if (${Target.Distance}>500) /return
/target id ${Me.TargetOfTarget.ID}
/varset HailMob ${Me.TargetOfTarget.ID}
/delay 20
/if (${Stick.Status.Equal[ON]}) /stick off
/if (${Me.Class.Name.Equal[Ranger]}) /varset Follow 0
/if (${Me.Class.Name.Equal[Rogue]} || ${Me.Class.Name.Equal[Wizard]}) /varset Follow FALSE
/if (${Me.Class.Name.Equal[Cleric]} || ${Me.Class.Name.Equal[Shaman]} || ${Me.Class.Name.Equal[Enchanter]}) { 
/varset FollowOn FALSE
/varset FollowGuy 0
}
:MoveLoop
/target id ${HailMob}
/stick 12
	  /if (${Target.Distance}>12) /stick 12
      /if (${Target.Distance}<11)  {
/stick off
			   /say ${ChatText}
			   /if (${Me.Class.Name.Equal[Ranger]}) /varset Follow 1
/if (${Me.Class.Name.Equal[Rogue]} || ${Me.Class.Name.Equal[Wizard]}) /varset Follow TRUE
			   /return
      }
	  /goto :MoveLoop

Sub Event_make_infusion(Line,Sender)
/if (${Me.AltAbilityReady["Infusion of the Faithful"]}) {
/delay 3s
/aa act Infusion of the Faithful
/gu INFUSION ON! GOGOGO!
/delay 4s
} else {
/gu ${Me.AltAbilityTimer[Infusion of the Faithful].TimeHMS} until Infusion is up again.
}
/return

Sub Event_make_intensity(Line,Sender)
/if (${Me.AltAbilityReady["Intensity of the Resolute"]}) {
/delay 3s
/aa act Intensity of the Resolute
/delay 4s
} else {
/gu ${Me.AltAbilityTimer[Intensity of the Resolute].TimeHMS} until Intensity is up again.
}
/return

Sub Event_AcceptTL
 /if (${Window[ConfirmationDialogBox].Open}) {
      /notify ConfirmationDialogBox Yes_Button leftmouseup
	  /return
   }
/return

Sub Event_make_camp(Line,Sender)
/camp
/stick off
/stick off
/endmacro

Sub Event_make_loot(Line,Sender)
/delay 5
/target ${Me.CleanName}"'s corpse"
/delay 5 ${Target.CleanName.Equal[${Me}'s corpse]}
/if (${Target.CleanName.NotEqual[${Me}'s corpse]}) /return
:corpsepull
/if (${Target.Distance}>100 || ${Target.CleanName.NotEqual[${Me}'s corpse]}) /return
/if (${Target.Distance}>20) /corpse
/delay 5s ${Target.Distance}<20
/loot
/delay 5s ${Me.State.Equal[BIND]}
/if (${Me.State.NotEqual[BIND]}) /goto :corpsepull
/declare loottotal int local
:LootLag
/varset loottotal ${Corpse.Items}
/delay 1s ${loottotal}!=${Corpse.Items}
/if (${loottotal}!=${Corpse.Items}) /goto :LootLag
/declare i int local
/for i 1 to ${loottotal}
:lootagain
/delay 3
/itemnotify loot${i} rightmouseup
/delay 10s !${Corpse.Item[${i}].ID}
/if (${Corpse.Item[${i}].ID}) /goto :lootagain
/next i
/nomodkey /notify LootWnd DoneButton leftmouseup
/return

Sub Event_make_invis(Line,Sender)
/attack off
| Already invis? Return. | 
/if (${Me.Invis}) /return
| Searching for common invis clickies now. | 
/if (${FindItem[Manacle of Disruption].InvSlot}) {
/casting "Manacle of Disruption" item
/return
}
| AA Invis? | 
| /if (${Me.AltAbilityReady["Innate Camouflage"]}) /aa act Innate Camouflage

| So your not invis, no clickies. Cast Spell. | 
/if (${Me.Class.Name.Equal[Ranger]}) {
/declare i int local
/for i 0 to ${Group.Members}
/if (${Group.Member[${i}].ID} && ${Select[${Group.Member[${i}].Class.ShortName},WAR,CLR]}) {
/echo lol
/target ${Group.Member[${i}].CleanName}
 /if (${Target.Distance}<=100 && !${Target.Invis}) {
          /call Cast "Superior Camouflage" gem7 5s
		  /g Invising ${Target}
        }

		}
				/next i

}
/if (${Me.AltAbilityReady["Innate Camouflage"]}) /aa act Innate Camouflage						


/if (${Me.Class.Name.Equal[Rogue]}) {
/doability Sneak
/doability Hide
}
/if (${Me.Class.Name.Equal[Shaman]}) {
/target ${Me}
/call cast "Invisibility" gem9 5s
}
/if (${Me.Class.Name.Equal[Bard]}) {
/twist stop
/memspell 9 "Shauri`s Sonorous Clouding"
/delay 5s
/twist hold 9
}
/if (${Me.Class.Name.Equal[Enchanter]}) {
/target ${Me}
| /call cast "Improved Invisibility" gem9 5s
/call cast "Invisibility" gem8	 5s
}
/return

Sub Event_break_invis(Line,Sender)
/if (!${Me.Invis}) /return
/target clear
/target ${Sender}
/if (${Me.Buff[Gather Shadows].ID}) /nomodkey /notify BuffWindow Buff${Math.Calc[${Me.Buff[Gather Shadows].ID}-1].Int} leftmouseup
/if (${Me.Buff[Superior Camouflage].ID}) /nomodkey /notify BuffWindow Buff${Math.Calc[${Me.Buff[Superior Camouflage].ID}-1].Int} leftmouseup
/if (${Me.Buff[Camouflage].ID}) /nomodkey /notify BuffWindow Buff${Math.Calc[${Me.Buff[Camouflage].ID}-1].Int} leftmouseup
/if (${Me.Buff[Invisibility].ID}) /nomodkey /notify BuffWindow Buff${Math.Calc[${Me.Buff[Invisibility].ID}-1].Int} leftmouseup
/if (${Me.Buff[Shauri`s Sonorous Clouding].ID}) /nomodkey /notify BuffWindow Buff${Math.Calc[${Me.Buff[Shauri`s Sonorous Clouding].ID}-1].Int} leftmouseup
/if (${Me.Class.Name.Equal[Bard]}) {
/twist stop
}
/return

Sub Event_sneak_fail(Line,Sender)
/t Honch sneak failed..
/1 sneak failed..
/return

Sub Event_ClickVirtue
/if (${Me.Buff[Hand of Virtue].ID}) /nomodkey /notify BuffWindow Buff${Math.Calc[${Me.Buff[Hand of Virtue].ID}-1].Int} leftmouseup
/if (${Me.Buff[Virtue].ID}) /nomodkey /notify BuffWindow Buff${Math.Calc[${Me.Buff[Virtue].ID}-1].Int} leftmouseup
/if (${Me.Buff[Protection of the Nine].ID}) /nomodkey /notify BuffWindow Buff${Math.Calc[${Me.Buff[Protection of the Nine].ID}-1].Int} leftmouseup
/return

Sub Event_Flag
/gu Got flag! :D
/return

Sub Event_Camping(Line,Sender)
/echo Camping detected, ending macro.
/stick off
/stick off
/endmacro

Sub Event_invis_fade(Line,Sender)
/1 INVIS FADING INVIS FADING
/t Honch INVIS FADING
/popup OH SHIT INVIS FADING OH SHIT
/return

Sub Event_consent(Line,Sender)
/consent ${Sender}
/return

Sub Event_make_lesson(Line,Sender)
/if (${Me.AltAbilityReady["Lesson of the Devoted"]}) {
/delay 3s
/aa act Lesson of the Devoted
/g Lesson of the Devoted ON!
/delay 4s
} else {
/gu ${Me.AltAbilityTimer[Lesson of the Devoted].TimeHMS} until Lesson is up again.
}
/return

Sub event_make_swarm(Line,Sender)
/if (${Me.Class.Name.Equal[Shaman]} || ${Me.Class.Name.Equal[Wizard]}) {
/target ${Sender}
/delay 10
/target id ${Me.TargetOfTarget.ID}
/delay 1s
/if (${Target.Type.Equal[NPC]} && ${Target.Distance}<140 && ${Me.AltAbilityReady["Spirit Call"]}) /aa act Spirit Call
/if (${Target.Type.Equal[NPC]} && ${Target.Distance}<140 && ${Me.AltAbilityReady["Call of Xuzl"]}) /aa act Call of Xuzl
}
/return

Sub event_make_rez(Line,Sender)
/if (${Me.Class.Name.Equal[Cleric]}) {
/target ${Sender}
/delay 10
/target id ${Me.TargetOfTarget.ID}
/casting "Water Sprinkler of Nem Ankh"
/1 Inc Rez to ${Target}
/delay 1s
}
/return

Sub event_make_zone(Line,Sender)
/target ${Sender}
/if (${Target.Name.Equal[${Sender}]}) {
/face heading ${Target.Heading}
/keypress u
/keypress forward hold
/delay 3s
/keypress forward
}
/return

Sub event_make_search(Line,Sender,ChatText)
/varset NameText NULL
/if (${Math.Calc[${String[${ChatText}].Length}].Int}>50) {
/varset NameText ${String[${ChatText}].Mid[47,${Math.Calc[${String[${ChatText}].Length}-47].Int}]}
/varset ChatText ${NameText}
} else {
/varset ChatText ${ChatText}
}
/if (${FindItemCount[${ChatText}]}) {
/gu Found ${FindItemCount[${ChatText}]} ${FindItem[${ChatText}]} on me.
}
/if (${FindItemBankCount[${ChatText}]}) {
/gu Found ${FindItemBankCount[${ChatText}]} ${FindItemBank[${ChatText}]} in the bank.
}
/if (${Math.Calc[${FindItemBankCount[${ChatText}]}+${FindItemCount[${ChatText}]}]}==0) {
/gu Did not find ${ChatText}
}
/return

Sub SafeTrade
/declare i int local
/declare ItemCount int local 0
/for i 8 to 15
/if (${Window[TradeWnd].Child[TRDW_TradeSlot${i}].Tooltip.Length}) /varcalc ItemCount ${ItemCount}+1
/next i
/if (${ItemCount}<${Me.FreeInventory}) {
/if (!${Window[TradeWnd].MyTradeReady}) /nomodkey /notify TradeWnd TRDW_Trade_Button leftmouseup
} else /if (${ItemCount}>${Me.FreeInventory}) {
/multiline ; /nomodkey /notify TradeWnd TRDW_Cancel_Button leftmouseup ; /echo I'm out of room! Only have ${Me.FreeInventory} slot(s) left.
}
/return